<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>幻灯片</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <script src="/lib/jquery/1.9.1/jquery.js"></script>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <script src="/H-ui.admin/lib/layer/2.4/layer.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div class="container-fluid" style="margin: 20px 50px">
    <div class="col-md-5">
        <div class="btn-group">
            <a class="btn btn-primary" href="{:url('store.stayIn/edit')}">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                添加多商户</a>
        </div>
    </div>
    <form class="col-md-7"action="{:url('store.stayIn/search')}" method="post">
        <div class="col-md-12">
            <div class="col-md-12 form-inline">
                    <select class="form-control">
                        <option selected>分组</option>
                        <option></option>
                    </select>
                    <select class="form-control">
                        <option selected>状态</option>
                        <option>禁用</option>
                        <option>启用</option>
                    </select>
                    <select class="form-control">
                        <option selected>审核</option>
                        <option>未审核</option>
                        <option>已审核</option>
                        <option>审核未通过</option>
                    </select>
                    <input type="text" class="form-control" id="exampleInputEmail2" name="content" placeholder="商户名称/手机号/联系人">
                    <button type="submit" class="form-control btn btn-default"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>搜索</button>

            </div>
        </div>
    </form>

</div>


<div style="margin: 10px 50px">
    <table class="table table-hover" style="width:100%">
        <tr>
            <th>商户名称</th>
            <th>主营项目</th>
            <th>联系人</th>
            <th>入驻时间</th>
            <th>到期时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        {foreach $items as $value}
        <tr>
            <td>{$value.store_name}</td>
            <td>{$value.main_project}</td>
            <td>
                <p>{$value.user.rname}</p>
                <p>{$value.user.mobile}</p>
            </td>
            <td>{$value.stay_time}</td>
            <td>{$value.service_end}</td>
            <td>
                <button type="button" class="btn btn-grey btn-xs">
                {switch $value.status}
                {case 0}待入驻{/case}
                {case 1}允许入驻{/case}
                {case 2}暂停入驻{/case}
                {/switch}
                </button>
            </td>
            <td>
                <a href="{:url('store.stayIn/edit')}?id={$value.id}" class="btn btn-primary btn-xs">编辑</a>
                <a href="{:url('store.stayIn/del')}?id={$value.id}" class="btn btn-primary btn-xs">删除</a>
            </td>
        </tr>
        {/foreach}
    </table>
    <div style="">{php}echo $page{/php}</div>
</div>

</body>
</html>